package cn.project.lemontree.dao;

import cn.project.lemontree.bean.Parent;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (Parent)表数据库访问层
 *
 * @author makejava
 * @since 2022-07-06 16:11:15
 */
public interface ParentDao extends BaseMapper<Parent> {

    List<Parent>listPage(@Param("page") int page,@Param("size") int size,@Param("parentName") String parentName,@Param("telephone")String telephone);
    int count(@Param("parentName") String parentName,@Param("telephone")String telephone);
    Parent login(String telephone);
    int save(Parent parent);
    int update(Parent parent);
    List<Parent> findParentByid(Integer childId);
    Parent findBytp(String telephone);
    List<Parent> getByClassId(Integer classId);
}